package com.LGF.Book.bean;

import java.io.Serializable;
import java.sql.Date;
public class Member implements Serializable {
    private long id;
    private String mname;
    private String pwd;
    private String sex;
    private long typeId;
    private long userId;
    private double balance;
    private java.sql.Date regdate;
    private String tel;
    private String idNumber;

    //外键
    private MemberType type;
    private UserType power;

    public MemberType getType() {
        return type;
    }

    public void setType(MemberType type) {
        this.type = type;
    }

    public UserType getPower() {
        return power;
    }

    public void setPower(UserType power) {
        this.power = power;
    }

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public String getMname() {
        return mname;
    }

    public void setMname(String mname) {
        this.mname = mname;
    }

    public String getPwd() {
        return pwd;
    }

    public void setPwd(String pwd) {
        this.pwd = pwd;
    }

    public long getTypeId() {
        return typeId;
    }

    public void setTypeId(long typeId) {
        this.typeId = typeId;
    }

    public long getUserId() {
        return userId;
    }

    public void setUserId(long userId) {
        this.userId = userId;
    }

    public double getBalance() {
        return balance;
    }

    public void setBalance(double balance) {
        this.balance = balance;
    }

    public Date getRegdate() {
        return regdate;
    }

    public void setRegdate(Date regdate) {
        this.regdate = regdate;
    }

    public String getTel() {
        return tel;
    }

    public void setTel(String tel) {
        this.tel = tel;
    }

    public String getIdNumber() {
        return idNumber;
    }

    public void setIdNumber(String idNumber) {
        this.idNumber = idNumber;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    @Override
    public String toString() {
        return "Member{" +
                "id=" + id +
                ", mname='" + mname + '\'' +
                ", pwd='" + pwd + '\'' +
                ", sex='" + sex + '\'' +
                ", typeId=" + typeId +
                ", userId=" + userId +
                ", balance=" + balance +
                ", regdate=" + regdate +
                ", tel='" + tel + '\'' +
                ", idNumber='" + idNumber + '\'' +
                ", type=" + type +
                ", power=" + power +
                '}';
    }
}
